<?php
$tdatamaster2_properties=array();
	$tdatamaster2_properties[".NumberOfChars"]=80; 
	$tdatamaster2_properties[".ShortName"]="master2_properties";
	$tdatamaster2_properties[".OwnerID"]="";
	$tdatamaster2_properties[".OriginalTable"]="master2_properties";


	
//	field labels
$fieldLabelsmaster2_properties = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsmaster2_properties["English"]=array();
	$fieldToolTipsmaster2_properties["English"]=array();
	$fieldLabelsmaster2_properties["English"]["id"] = "Id";
	$fieldToolTipsmaster2_properties["English"]["id"] = "";
	$fieldLabelsmaster2_properties["English"]["spec_code"] = "Spec Code";
	$fieldToolTipsmaster2_properties["English"]["spec_code"] = "";
	$fieldLabelsmaster2_properties["English"]["spec_name"] = "Spec Name";
	$fieldToolTipsmaster2_properties["English"]["spec_name"] = "";
	if (count($fieldToolTipsmaster2_properties["English"])){
		$tdatamaster2_properties[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsmaster2_properties["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsmaster2_properties["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsmaster2_properties["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsmaster2_properties["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsmaster2_properties["Chinese (Hong Kong S.A.R.)"]["spec_code"] = "Spec Code";
	$fieldToolTipsmaster2_properties["Chinese (Hong Kong S.A.R.)"]["spec_code"] = "";
	$fieldLabelsmaster2_properties["Chinese (Hong Kong S.A.R.)"]["spec_name"] = "Spec Name";
	$fieldToolTipsmaster2_properties["Chinese (Hong Kong S.A.R.)"]["spec_name"] = "";
	if (count($fieldToolTipsmaster2_properties["Chinese (Hong Kong S.A.R.)"])){
		$tdatamaster2_properties[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsmaster2_properties["Chinese (Taiwan)"]=array();
	$fieldToolTipsmaster2_properties["Chinese (Taiwan)"]=array();
	$fieldLabelsmaster2_properties["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsmaster2_properties["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsmaster2_properties["Chinese (Taiwan)"]["spec_code"] = "Spec Code";
	$fieldToolTipsmaster2_properties["Chinese (Taiwan)"]["spec_code"] = "";
	$fieldLabelsmaster2_properties["Chinese (Taiwan)"]["spec_name"] = "Spec Name";
	$fieldToolTipsmaster2_properties["Chinese (Taiwan)"]["spec_name"] = "";
	if (count($fieldToolTipsmaster2_properties["Chinese (Taiwan)"])){
		$tdatamaster2_properties[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsmaster2_properties["French"]=array();
	$fieldToolTipsmaster2_properties["French"]=array();
	if (count($fieldToolTipsmaster2_properties["French"])){
		$tdatamaster2_properties[".isUseToolTips"]=true;
	}
}


	
	$tdatamaster2_properties[".NCSearch"]=true;

	

$tdatamaster2_properties[".shortTableName"] = "master2_properties";
$tdatamaster2_properties[".nSecOptions"] = 0;
$tdatamaster2_properties[".recsPerRowList"] = 1;	
$tdatamaster2_properties[".tableGroupBy"] = "0";
$tdatamaster2_properties[".mainTableOwnerID"] = "";
$tdatamaster2_properties[".moveNext"] = 1;




$tdatamaster2_properties[".showAddInPopup"] = false;

$tdatamaster2_properties[".showEditInPopup"] = false;

$tdatamaster2_properties[".showViewInPopup"] = false;


$tdatamaster2_properties[".fieldsForRegister"] = array();

$tdatamaster2_properties[".listAjax"] = true;

	$tdatamaster2_properties[".audit"] = false;

	$tdatamaster2_properties[".locking"] = false;
	
$tdatamaster2_properties[".listIcons"] = true;
$tdatamaster2_properties[".edit"] = true;
$tdatamaster2_properties[".inlineEdit"] = true;
$tdatamaster2_properties[".view"] = true;

$tdatamaster2_properties[".exportTo"] = true;

$tdatamaster2_properties[".printFriendly"] = true;

$tdatamaster2_properties[".delete"] = true;

$tdatamaster2_properties[".showSimpleSearchOptions"] = true;

$tdatamaster2_properties[".showSearchPanel"] = true;


$tdatamaster2_properties[".isUseAjaxSuggest"] = true;

$tdatamaster2_properties[".rowHighlite"] = true;


// button handlers file names

$tdatamaster2_properties[".addPageEvents"] = false;

$tdatamaster2_properties[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatamaster2_properties[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatamaster2_properties[".isUseTimeForSearch"] = false;

$tdatamaster2_properties[".isUseiBox"] = false;



$tdatamaster2_properties[".isUseInlineAdd"] = true;

$tdatamaster2_properties[".isUseInlineEdit"] = true;
$tdatamaster2_properties[".isUseInlineJs"] = $tdatamaster2_properties[".isUseInlineAdd"] || $tdatamaster2_properties[".isUseInlineEdit"];

$tdatamaster2_properties[".allSearchFields"] = array();

$tdatamaster2_properties[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatamaster2_properties[".allSearchFields"]))
{
	$tdatamaster2_properties[".allSearchFields"][] = "id";	
}
$tdatamaster2_properties[".globSearchFields"][] = "spec_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_code", $tdatamaster2_properties[".allSearchFields"]))
{
	$tdatamaster2_properties[".allSearchFields"][] = "spec_code";	
}
$tdatamaster2_properties[".globSearchFields"][] = "spec_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_name", $tdatamaster2_properties[".allSearchFields"]))
{
	$tdatamaster2_properties[".allSearchFields"][] = "spec_name";	
}


$tdatamaster2_properties[".googleLikeFields"][] = "id";
$tdatamaster2_properties[".googleLikeFields"][] = "spec_code";
$tdatamaster2_properties[".googleLikeFields"][] = "spec_name";



$tdatamaster2_properties[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatamaster2_properties[".allSearchFields"])) 
{
	$tdatamaster2_properties[".allSearchFields"][] = "id";	
}
$tdatamaster2_properties[".advSearchFields"][] = "spec_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_code", $tdatamaster2_properties[".allSearchFields"])) 
{
	$tdatamaster2_properties[".allSearchFields"][] = "spec_code";	
}
$tdatamaster2_properties[".advSearchFields"][] = "spec_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_name", $tdatamaster2_properties[".allSearchFields"])) 
{
	$tdatamaster2_properties[".allSearchFields"][] = "spec_name";	
}

$tdatamaster2_properties[".isTableType"] = "list";


	

$tdatamaster2_properties[".isDisplayLoading"] = true;

$tdatamaster2_properties[".isResizeColumns"] = false;





$tdatamaster2_properties[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatamaster2_properties[".strOrderBy"] = $gstrOrderBy;
	
$tdatamaster2_properties[".orderindexes"] = array();

$tdatamaster2_properties[".sqlHead"] = "SELECT id,   spec_code,   spec_name";
$tdatamaster2_properties[".sqlFrom"] = "FROM master2_properties";
$tdatamaster2_properties[".sqlWhereExpr"] = "";
$tdatamaster2_properties[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatamaster2_properties[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatamaster2_properties[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatamaster2_properties[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "master2_properties";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatamaster2_properties["id"]=$fdata;
//	spec_code
	$fdata = array();
	$fdata["strName"] = "spec_code";
	$fdata["ownerTable"] = "master2_properties";
		$fdata["Label"]="Spec Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_code";
	
		$fdata["FullName"]= "spec_code";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatamaster2_properties["spec_code"]=$fdata;
//	spec_name
	$fdata = array();
	$fdata["strName"] = "spec_name";
	$fdata["ownerTable"] = "master2_properties";
		$fdata["Label"]="Spec Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_name";
	
		$fdata["FullName"]= "spec_name";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatamaster2_properties["spec_name"]=$fdata;

	
$tables_data["master2_properties"]=&$tdatamaster2_properties;
$field_labels["master2_properties"] = &$fieldLabelsmaster2_properties;
$fieldToolTips["master2_properties"] = &$fieldToolTipsmaster2_properties;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["master2_properties"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["master2_properties"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto327=array();
$proto327["m_strHead"] = "SELECT";
$proto327["m_strFieldList"] = "id,   spec_code,   spec_name";
$proto327["m_strFrom"] = "FROM master2_properties";
$proto327["m_strWhere"] = "";
$proto327["m_strOrderBy"] = "";
$proto327["m_strTail"] = "";
$proto328=array();
$proto328["m_sql"] = "";
$proto328["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto328["m_column"]=$obj;
$proto328["m_contained"] = array();
$proto328["m_strCase"] = "";
$proto328["m_havingmode"] = "0";
$proto328["m_inBrackets"] = "0";
$proto328["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto328);

$proto327["m_where"] = $obj;
$proto330=array();
$proto330["m_sql"] = "";
$proto330["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto330["m_column"]=$obj;
$proto330["m_contained"] = array();
$proto330["m_strCase"] = "";
$proto330["m_havingmode"] = "0";
$proto330["m_inBrackets"] = "0";
$proto330["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto330);

$proto327["m_having"] = $obj;
$proto327["m_fieldlist"] = array();
						$proto332=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "master2_properties"
));

$proto332["m_expr"]=$obj;
$proto332["m_alias"] = "";
$obj = new SQLFieldListItem($proto332);

$proto327["m_fieldlist"][]=$obj;
						$proto334=array();
			$obj = new SQLField(array(
	"m_strName" => "spec_code",
	"m_strTable" => "master2_properties"
));

$proto334["m_expr"]=$obj;
$proto334["m_alias"] = "";
$obj = new SQLFieldListItem($proto334);

$proto327["m_fieldlist"][]=$obj;
						$proto336=array();
			$obj = new SQLField(array(
	"m_strName" => "spec_name",
	"m_strTable" => "master2_properties"
));

$proto336["m_expr"]=$obj;
$proto336["m_alias"] = "";
$obj = new SQLFieldListItem($proto336);

$proto327["m_fieldlist"][]=$obj;
$proto327["m_fromlist"] = array();
												$proto338=array();
$proto338["m_link"] = "SQLL_MAIN";
			$proto339=array();
$proto339["m_strName"] = "master2_properties";
$proto339["m_columns"] = array();
$proto339["m_columns"][] = "id";
$proto339["m_columns"][] = "spec_code";
$proto339["m_columns"][] = "spec_name";
$obj = new SQLTable($proto339);

$proto338["m_table"] = $obj;
$proto338["m_alias"] = "";
$proto340=array();
$proto340["m_sql"] = "";
$proto340["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto340["m_column"]=$obj;
$proto340["m_contained"] = array();
$proto340["m_strCase"] = "";
$proto340["m_havingmode"] = "0";
$proto340["m_inBrackets"] = "0";
$proto340["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto340);

$proto338["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto338);

$proto327["m_fromlist"][]=$obj;
$proto327["m_groupby"] = array();
$proto327["m_orderby"] = array();
$obj = new SQLQuery($proto327);

$queryData_master2_properties = $obj;
$tdatamaster2_properties[".sqlquery"] = $queryData_master2_properties;

$tableEvents["master2_properties"] = new eventsBase;

?>
